package org.gd.hellojaxb.other;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "header")
public class Header {

    private String header;
    private String info;

    public Header() {

    }

    public Header(String header, String info) {
        this.header = header;
        this.info = info;
    }

    public String getHeader() {
        return header;
    }

    @XmlElement(name = "title")
    public void setHeader(String header) {
        this.header = header;
    }

    public String getInfo() {
        return info;
    }

    @XmlAttribute(name = "info")
    public void setInfo(String info) {
        this.info = info;
    }

}
